package cn.lzj.ymcc.feign;

import cn.lzj.ymcc.domain.Login;
import cn.lzj.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-uaa",fallbackFactory = UaaLoginFeignClientFallbackFactory.class)
public interface UaaLoginFeignClient {

    //保存login
    @RequestMapping(value="/login/save",method= RequestMethod.POST)
    JSONResult savalogin(@RequestBody Login login);
}
